package cn.com.myproject.demo;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

//@Component
public class DemoFeignFallbackFactory implements FallbackFactory<DemoFeignClient> {
    @Override
    public DemoFeignClient create(Throwable cause) {
        return new DemoFeignClient() {
            @Override
            public Integer add(Integer a, Integer b) {
                return 0;
            }
        };
    }
}
